<?php
@session_start(1);
date_default_timezone_set('Asia/Bangkok'); 

define('IN_SONG', true); 
require_once '../config'. DIRECTORY_SEPARATOR .'define.php';
if(IS_DEBUG)
{
    require_once ROOT.DS.'kernel'.DS.'debug.php';
    Debug::getInstance()->mark('Begin script', 'index.php');
} 
if (!include(ROOT .DS. 'kernel' .DS. 'bootstrap.php')) {
    trigger_error("PHP core could not be found.", E_USER_ERROR);
}               
if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') { 
    return;
} else {     
    $Dispatcher = new Dispatcher();
    $Dispatcher->dispatch();
}  
?>